<template>
  <div class="topbar">
      <div class="tobar">
          <img src="logo.png" alt="" @click="fun()">
          <van-icon name="search" size="0.3rem" class="tofang"/>
          <van-icon name="service-o" size="0.3rem" class="toright"/>
      </div>
      <!-- <Home2/> -->
  </div>
</template>

<script>
// import Home2 from "./home2.vue"
export default {
    components:{
        // Home2
    },
    methods:{
        fun(){
            this.$router.go(-1)
        }
    }
}

</script>

<style scoped>

    .tobar{
        width:100%;
        height:0.5rem;
         position: fixed;
        top:0;
        display:flex;
        justify-content: space-between;
        align-self: center;
        background:#fff;
        z-index: 1;
    }
    .tobar img{
        
        height:0.5rem;
       
    }
    .tobar i{
        line-height: 0.5rem;
    }
    .tofang{
        padding-left:1rem;
    }
    .toright{
        padding-right:0.15rem;
    }
</style>